﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace msBsc.WebUi.mMall.Seller
{
    public partial class mftemp : msBsc.Cls.mBPDealer
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        private void saveImg() {
            string str64 = this.GetParamHtValue("str64");
            string postFileNme = this.GetParamHtValue("postFileNme");
            bool blfnmeutf8 = true;
            try
            {
                using (msBsc.AppLogic.DataAlc.CBizSysFile sysFile = new AppLogic.DataAlc.CBizSysFile())
                {
                    string data = sysFile.SaveImgToServer(str64, postFileNme, "", "", msBsc.SvRef.UserInfo.Operator, "1", "", "", true, "", blfnmeutf8);
                    this.ExecJScript("getImg(" + data + ")");
                }
            }
            catch (Exception e)
            {
                this.Alert(e.Message);
            }
            
        }

        public override void DoAction()
        {
            if (this.strAction=="doto")
            {
                saveImg();
            }
        }
    }
}